﻿window.addEvent('domready', function(){
	MochaUI.ajaxpageWindow = function(){	
	    new MochaUI.Window({
		    id: 'loginWindow',
		    title: 'CsLand Ams v1.0 - 中新置地项目档案管理系统',
		    loadMethod: 'iframe',
		    contentURL: '../htmls/login.html',
		    width: 473,
		    height: 260,
		    x: 1,
		    y: 1,
		    resizable: false,
		    maximizable: false,
		    contentBgColor: '#fff',
		    padding: { top: 0, right: 0, bottom: 0, left: 0 },
		    cornerRadius: 0
	    });
    }
    
    MochaUI.ajaxpageWindow();
	MochaUI.centerWindow($("loginWindow"));
	
	window.onresize = function() {
	    setTimeout('MochaUI.centerWindow($("loginWindow"))',100);
	}
});